package com.ztgf.order.models.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 订单商品表VO
 *
 * @author chenyu.wang
 * @Date 2020-06-03 15:55:40
 */
@Data
public class OrderCommodityRelationVO implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "订单id")
    private Long orderId;
    @ApiModelProperty(value = "商品id")
    private Long commodityId;
    @ApiModelProperty(value = "规格属性id 以逗号隔开")
    private String atrrId;
    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;
    @ApiModelProperty(value = "商品数量")
    private Integer num;
    @ApiModelProperty(value = "商品金额")
    private BigDecimal moeny;
    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountMoney;
    @ApiModelProperty(value = "实付金额")
    private BigDecimal actualMoney;
    @ApiModelProperty(value = "折扣方式 0不享受，1批发、2会员")
    private Integer discountType;
    @ApiModelProperty(value = "税率 除以100")
    private Integer taxRate;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "卖家改价金额")
    private BigDecimal changePrice;
}
